home *** CD-ROM | disk | FTP | other *** search
Wrap
Text File | 1995-06-18 | 28.1 KB | 680 lines | [ TEXT/KAHL]
#define SystemSevenOrLater 1 #include <Types.r> #include <SysTypes.r> #include <BalloonTypes.r> #include "ResourceDefinitions.h" resource 'WIND' (rDocWindow, "Document Window", purgeable, preload) { {50, 10, 290, 395}, zoomDocProc, invisible, goAway, 0x0, "untitled", staggerMainScreen }; resource 'vers' (1, "File version number and Company Copyright", purgeable) { 0x1, 0x20, development, 0x12, verUS, "1.2d12", "1.2d12 (US), © Mark H. Linton 1994, 1995" }; resource 'vers' (2, "Product Name and Version", purgeable) { 0x1, 0x20, development, 0x12, verUS, "1.2d12", "by Mark H. Linton" }; resource 'kind' (1000) { '.oO~', 0, { '.oO~', "Really Cool Document!" } }; resource 'STR#' (rRevisionInfo, "Revision Information") { { "1.2d12 - Added Balloon Help for the pop-up navugation menu and over-ride help " "for the document window title bar, also added general balloon help, also " "made \"Stack Windows\" command refresh the windows.", "1.2d11 - Per \"Copland Technical Overview\" from WWDC, using STRICT_WINDOWS" ", STRICT_CONTROLS, and STRICT_MENUS and not OLDROUTINENAMES or " "OLDROUTINELOCATIONS. Add Copland.h as prefix to compile.", "1.2d10 - Was installing AppleEvent Handlers before checking for the presence " "of the AppleEvent Manager. Now check for required features before " "doing ANYTHING!", "1.2d9 - Was calling GetNewCWindow without first checking for the presence of " "ColorQuickdraw - Sorry Ted =^} (sheepish grin)." "1.2d8 - Incorporated \"manual\" put away if Scriptable Finder is not available. " "Code courtesy of Dave Johnson - Thanks.", "1.2d8 (Continued) - Disabled items in popup navigation menu if Scriptable Finder " "is not available.", "1.2d8 (Continued) - Changed CommandKeyIsDown because it broke going from CW5 to " "CW6. I'm not really sure why =^} (sheepish grin).", "1.2d8 (Continued) - Added OptionKeyIsDown and use it now in DSPopupNavigation. If " "the option key is held down when an item is selected from the popup " "navigation menu it hides the application in addition to revealing the item.", "1.2d8 (Continued) - Changed GetVolumeModDate to use PBHGetVInfo and the ioVLsMod field " "rather than PBGetVInfo and the ioVLsBkUp field -- per Jim Luther - Thanks. " "Changed routine names and field names accordingly.", "1.2d8 (Continued) - Removed GetFileName and replaced all occurrences with " "GetNameOfReferencedFile since they were redundant - Thanks Jim.", "1.2d8 (Continued) - Changed GetFolderParID and GetFolderName to accept a vRefNum " "parameter. Previously they had always used the default volume (0) - " "Thanks Jim.", "1.2d8 (Continued) - Changed CanAccess to use PBGetCatInfo and the ioACUser (filler2) " "field rather than PBHGetDirAccess and the ioACAccess field - Thanks Jim.", "1.2d8 (Continued) - Removed references to kWhereToEmptyTrashFolderType from " "FileInTrashCan and GetTrashFolder since they were redundant. Also removed " "the desktop because it was confusing and didn't help that much - Thanks Jim.", "1.2d8 (Continued) - Removed FileOnExternalVolume because it was wrong and nobody " "was using it - Thanks Jim.", "1.2d8 (Continued) - Reduced amount of stack required by FSGetFolderSize/GetDirectorySize " "by making some parameters static and eliminating another - also check that enough " "stack is available before continuing - Thanks Jim.", "1.2d8 (Continued) - Also changed GetDirectorySize to use physical rather than logical sizes.", "1.2d8 (Continued) - Changed InBackground to use SameProcess rather than manual comparison " "- Thanks Jim", "1.2d8 (Continued) - Changed GetSignature, GetProcessName and FindFinder to pass nil in " "the process manager parameter blocks for those parameters I'm not interested " "in - Thanks Jim.", "1.2d8 (Continued) - Changed GetFilesVolume to check ioFCBVRefNum rather than ioVRefNum.", "1.2d8 (Continued) - Removed aName from the CanAccess parameter list. Also modified it to " "ignore the bit indicating that the user is the owner.", "1.2d8 (Continued) - Didn't change much this time. Did we? =^)", "1.2d7 - Changed logic of when to DSSyncWindowsWithFiles. Previous version " "was incorrect and it's use was less than straight-forward. Thanks " "again Dave.", "1.2d6 - Added Gestalt check for System 7 _ONLY_. Some of our techniques " "will have to be revisited under Copland and rather than guessing " "wrong now we simply make it stop working.", "1.2d6 (Continued) - Added a Boolean parameter to DSSyncWindowsWithFiles to " "allow immeditate synchronization. Useful on Resume events.", "1.2d6 (Continued) - Changed DSFindWindow to call DSPopUpNavigation directly " "and changed DSFindWindow to return inDesk, nil in the previous " "inNavigator case.", "1.2d6 (Continued) - Removed alert from HandleDirectoryChange. If user ends " "up not having access to the new directory, the pop-up will show it " "and the next Save will revert to a Save As.", "1.2d5 - Changed alert for closing a dirty document because it was moved " "to the trash based on a recomendation from Elizabeth Moller - Thanks!", "1.2d4 - Changed name of HandleMoveAccessDenied to HandleDirectoryChange " "and changed order of HandleXXX routines.", "1.2d3 - Added a copyright to the \"About...\" box..", "1.2d2 - Added Stack Windows code (only correct for single monitor).", "1.2d1 - Added check of space in trash in SafeSave. Other minor tweeks.", "1.2d0 - Added MW/C Project Support. Fixed a bug in Document.c where I forgot " "to set the return code to noErr in case of success. Changed seperate " "globals in Toolbox.c to a single global structure 't'.", "1.1d6 - Fixed resource v. data comment in SafeSave. Close resource fork if " "present in main. Use process manager and not globals/resume event " "to determine for/back sleep.", "1.1d5 - Corrected '==' vs. '=' error in EvenMoreFiles.c and DSGetDFRefNum v. " "DSGetRFRefNum error in SafeSave.c - my thanks to Dave Johnson.", "1.1d5 (Continued) - John Norstad was correct when he said how important it is " "to use the full union in the PBxxx file manager calls.", "1.1d5 (Continued) - Using only the specified PORTION of the union may result " "in stack stompage -- all EvenMoreFiles routines updated. Thanks to UMPG.", "1.1d5 (Continued) - Never close a file that doesn't exist! -- SafeSave.c " "updated to only close files with non-zero reference numbers.", "1.1d5 (Continued) - Incorporated Dave Johnson's suggestions about how to do polling " "for name synchronization into main.c.", "1.1d5 (Continued) - Updated 'View' menu to not use second divider and to disable " "view options if no documents are present.", "1.1d5 (Continued) - Added Boolean parameter to DoCloseCommand to decide whether " "to prompt user to save (already done in drag to Trash case) -- thanks to " "Dave Johnson. It is GREAT to have ßeta Testers!", "1.1d4 - Modified DSSyncWindowsWithFiles to perform a single tick-check, rather " "than one for each document.", "1.1d4 (Continued) - Modified DoSyncChecks to be more general case " "checking the volume modification date first for all documents rather than " "only for ones on external volumes.", "1.1d3 - Fixed code that uses DoCloseCommand to handle userCancelledError correctly. " "Added Revert command.", "1.1d2 - Added place-holders for New View, Tile Windows, and Stack Windows in the " "View menu. They do not do anything but they show that you do not lose " "the ability to provide alternate views by handling re-opening a document " "properly.", "1.1d1 - Fixed HandleMoveToTrash so that it doesn't ask the user to save changes to " "a document that is clean.", "1.1d0 - Added heap setup & grow zone. Added document content. Fixed bug preventing " "unsaved windows from closing. Fixed bug which lost document icon.", "1.1d0 (Continued) - Changed to use new routine names/locations. Removed unused " "routines/variables. Added contributors to About...", "1.0d2 - Changed the way file names are appended to menus to use AppendMenu " "and SetMenuItemText, rather than just AppendMenu.", "1.0d2 (Continued) - This is needed since a file name can contain meta-characters " "which would be interpreted by AppendMenu. SetMenuItemText does not interpret " "meta-characters.", "1.0d1 - Baseline for \"develop\" submission. Changed text of rCloseAlert " "cancel button to \"Remove From Trash\". Changed logic in DoSyncChecks.", "0.2d1 - Added an InBackground check to drag-to-trash so that when multiple " "files are trashed only one notice is presented.", "0.2d0 - Added some humor to the \"About...\" box. Added a zoom-to-trash visual" " feedback when the item is dragged to the trash in Finder.", "0.1d8 - Completely restructured the source code. Added a scrolling styled" "-text about box. Check privileges of directory on moves. Use icon of" " reasonable style for volume type, etc.", "0.1d7 - Now check for the features I use (I think) before I use them.", "0.1d6 - Check for document dirty when closing on drag-to-trash. If so, post " "notice, wait until front, ask [save|dont|cancel]. If cancel, send " "kAEPutAway, kAEFinderSuite.", "0.1d5 - Fixed a bug where \"Save\" would be enabled any time ANY document " "had an associated file reference number, NOT just the FRONT one.", "0.1d4 - Added preflight check of volume modification date before going across " "network for synchronization.", "0.1d3 - Added handling of trying to open a file that is open elsewhere on the " "network.", "0.1d2 - Added handling for network trash cans and display of desktop in pop-up " "navigator, changed \"Documents\" menu from 'cicn' to text.", "0.1d1 - Reduced frequency of name sync for external volumes, added AppleShare " "icon in pop-up if external.", "0.1d0 - Initial release to develop editorial staff." } }; resource 'STR#' (rAppleMenuHelp, "Apple menu help") { { "Hi!", "Copyright 1994\nMark H. Linton" } }; resource 'STR ' (rFinderIconHelp, "Application icon help", purgeable) { "Use Documentary Synchronicity to see some cool features you could add to your " "application." }; resource 'STR ' (rDesktopString, "String Naming the Desktop Directory", purgeable) { "Desktop" }; resource 'STR ' (rAccessDeniedString, "String Indicating Directory Access Denied", purgeable) { "Access Denied" }; resource 'STR ' (rNotifyString, "Notify User of Need for Attention", purgeable) { "The application “DocumentarySynchronicity” requires your assistance. " "Please select it from the Application Menu and bring it to the front." }; resource 'STR ' (-16396, "Missing-application name string", purgeable) { "Documentary Synchronicity" }; resource 'MENU' (mApple, "Apple menu", preload) { mApple, textMenuProc, 0x7FFFFFFD, enabled, apple, { "About DocumentarySynchronicity...", noIcon, noKey, noMark, plain, "-", noIcon, noKey, noMark, plain } }; resource 'hmnu' (mApple, "Apple menu help", purgeable) { HelpMgrVersion, hmDefaultOptions, 0, 0, HMSkipItem {}, /* No missing Items */ { HMSkipItem {}, /* Title */ HMStringResItem { rAppleMenuHelp, 2, 0, 0, 0, 0, 0, 0 } /* About application... */ } }; resource 'MENU' (mFile, "File menu", preload) { mFile, textMenuProc, 0x7000, enabled, "File", { "New", noIcon, "N", noMark, plain, "Open…", noIcon, "O", noMark, plain, "-", noIcon, noKey, noMark, plain, "Close", noIcon, "W", noMark, plain, "Save", noIcon, "S", noMark, plain, "Save As…", noIcon, noKey, noMark, plain, "Revert", noIcon, noKey, noMark, plain, "-", noIcon, noKey, noMark, plain, "Page Setup…", noIcon, noKey, noMark, plain, "Print…", noIcon, "P", noMark, plain, "-", noIcon, noKey, noMark, plain, "Quit", noIcon, "Q", noMark, plain } }; resource 'hmnu' (mFile, "File menu help", purgeable) { HelpMgrVersion, hmDefaultOptions, 0, 0, HMSkipItem {}, /* No missing items */ { HMStringItem { /* Title */ "File menu\n\nUse this menu to perform operations with disks, files, folders and printers.", /* Enabled */ "", /* Application Dimmed */ "File menu\n\nNot available now because a dialog box is on the screen.", /* System Dimmed - Title Help */ "This item is not available now because a dialog box is on the screen." /* System Dimmed - Item Help */ }, HMStringItem { /* New */ "Creates a new document named “untitled”.", /* Enabled */ "", /* Dimmed */ "", /* Enabled and Checked */ "" /* Enabled and Marked */ }, HMStringItem { /* Open */ "Opens an existing document.", /* Enabled */ "", /* Dimmed */ "", /* Enabled and Checked */ "" /* Enabled and Marked */ }, HMSkipItem {}, /* Divider */ HMStringItem { /* Close */ "Closes the active document.", /* Enabled */ "Closes the active document.\n\nNot available now because no document is open.", /* Dimmed */ "", /* Enabled and Checked */ "" /* Enabled and Marked */ }, HMStringItem { /* Save */ "Saves the active document to its associated disk file.", /* Enabled */ "Saves the active document to its associated disk file.\n\nNot available now because the document has not been edited since it was last saved.", /* Dimmed */ "", /* Enabled and Checked */ "" /* Enabled and Marked */ }, HMStringItem { /* Save As */ "Saves the active document to a new disk file.", /* Enabled */ "Saves the active document to a new disk file.\n\nNot available now because no document is open.", /* Dimmed */ "", /* Enabled and Checked */ "" /* Enabled and Marked */ }, HMStringItem { /* Revert */ "Reverts the active document to the last saved version.", /* Enabled */ "Reverts the active document to the last saved version.\n\nNot available now because the active document has not been saved or has not been edited since it was last saved.", /* Dimmed */ "", /* Enabled and Checked */ "" /* Enabled and Marked */ }, HMSkipItem {}, /* Divider */ HMStringItem { /* Page Setup */ "Set paper size, orientation, and other printer options.", /* Enabled */ "Set paper size, orientation, and other printer options.\n\nNot available now because no document is active.", /* Dimmed */ "", /* Enabled and Checked */ "" /* Enabled and Marked */ }, HMStringItem { /* Print */ "Prints the active document.", /* Enabled */ "Prints the active document.\n\nNot available now because no document is active.", /* Dimmed */ "", /* Enabled and Checked */ "" /* Enabled and Marked */ }, HMSkipItem {}, /* Divider */ HMStringItem { /* Quit */ "Closes open documents and then quits the application.", /* Enabled */ "", /* Dimmed */ "", /* Enabled and Checked */ "" /* Enabled and Marked */ } } }; resource 'MENU' (mEdit, "Edit Menu", preload) { mEdit, textMenuProc, 0x3FC0, disabled, "Edit", { "Undo", noIcon, "Z", noMark, plain, "-", noIcon, noKey, noMark, plain, "Cut", noIcon, "X", noMark, plain, "Copy", noIcon, "C", noMark, plain, "Paste", noIcon, "V", noMark, plain "Clear", noIcon, noKey, noMark, plain "Select All", noIcon, "A", noMark, plain } }; resource 'hmnu' (mEdit, "Edit menu help", purgeable) { HelpMgrVersion, hmDefaultOptions, 0, 0, HMSkipItem {}, /* No missing items */ { HMStringItem { /* Title */ "Edit menu\n\nUse this menu to work with items in the active document and to undo actions.", /* Enabled */ "Edit menu\n\nUse this menu to work with items in the active document and to undo actions.\n\nNot available now because it is not present in this version.", /* Application Dimmed */ "Edit menu\n\nNot available now because a dialog box is on the screen.", /* System Dimmed - Title Help */ "This item is not available now because a dialog box is on the screen." /* System Dimmed - Item Help */ }, HMStringItem { /* Undo */ "Reverses your last action.", /* Enabled */ "Reverses your last action.\n\nNot available now because your last action can't be undone.", /* Dimmed */ "", /* Enabled and Checked */ "" /* Enabled and Marked */ }, HMSkipItem {}, /* Divider */ HMStringItem { /* Cut */ "Removes the selected item and places it on the Clipboard, replacing the Clipboard's contents.", /* Enabled */ "Removes the selected item and places it on the Clipboard, replacing the Clipboard's contents.\n\nNot available now because no item is selected.", /* Dimmed */ "", /* Enabled and Checked */ "" /* Enabled and Marked */ }, HMStringItem { /* Copy */ "Copies the selected item and places it on the Clipboard, replacing the Clipboard's contents.", /* Enabled */ "Copies the selected item and places it on the Clipboard, replacing the Clipboard's contents.\n\nNot available now because no item is selected.", /* Dimmed */ "", /* Enabled and Checked */ "" /* Enabled and Marked */ }, HMStringItem { /* Paste */ "Inserts the contents of the Clipboard into the active document, replacing any selected items.", /* Enabled */ "Inserts the contents of the Clipboard into the active document, replacing any selected items.\n\nNot available now because the Clipboard is empty or no document is open.", /* Dimmed */ "", /* Enabled and Checked */ "" /* Enabled and Marked */ }, HMStringItem { /* Clear */ "Removes the selected item without placing it on the Clipboard.", /* Enabled */ "Removes the selected item without placing it on the Clipboard.\n\nNot available now because no item is selected.", /* Dimmed */ "", /* Enabled and Checked */ "" /* Enabled and Marked */ }, HMStringItem { /* Select All */ "Selects all items in the current document.", /* Enabled */ "Selects all items in the current document.\n\nNot available now because no document is open.", /* Dimmed */ "", /* Enabled and Checked */ "" /* Enabled and Marked */ } } }; resource 'MENU' (mDocument, "View Menu", preload) { mDocument, textMenuProc, allEnabled, enabled, "View", { "New View", noIcon, noKey, noMark, plain, "-", noIcon, noKey, noMark, plain, "Tile Windows", noIcon, noKey, noMark, plain, "Stack Windows", noIcon, noKey, noMark, plain, } }; resource 'hmnu' (mDocument, "View menu help", purgeable) { HelpMgrVersion, hmDefaultOptions, 0, 0, HMStringItem { /* Missing Items -- The added documents */ "This document is behind the active document.\n\nTo make this document active, select this item.", /* Enabled */ "", /* Dimmed */ "This is the active document.", /* Enabled and Checked */ "" /* Enabled and Marked */ }, { HMStringItem { /* Title */ "View menu\n\nUse this menu to switch or rearrange document windows.", /* Enabled */ "", /* Application Dimmed */ "View menu\n\nNot available now because a dialog box is on the screen.", /* System Dimmed - Title Help */ "This item is not available now because a dialog box is on the screen." /* System Dimmed - Item Help */ }, HMStringItem { /* New View */ "Creates new view of the active document.", /* Enabled */ "Creates new view of the active document.\n\nNot available now because no document is active.", /* Dimmed */ "", /* Enabled and Checked */ "" /* Enabled and Marked */ }, HMSkipItem {}, /* Divider */ HMStringItem { /* Tile Windows */ "Arranges all open document windows in a tiled pattern.", /* Enabled */ "Arranges all open document windows in a tiled pattern.\n\nNot available now because at least two documents must be open.", /* Dimmed */ "", /* Enabled and Checked */ "" /* Enabled and Marked */ }, HMStringItem { /* Stack Windows */ "Arranges all open document windows in a stacked pattern.", /* Enabled */ "Arranges all open document windows in a stacked pattern.\n\nNot available now because at least two documents must be open.", /* Dimmed */ "", /* Enabled and Checked */ "" /* Enabled and Marked */ } } }; resource 'MBAR' (rMenuBar, "Application menu bar", preload) { { mApple, mFile, mEdit, mDocument } }; resource 'hmnu' (kDocumentNameMenuID, "Pop-up Document Name Menu help", purgeable) { HelpMgrVersion, hmDefaultOptions, 0, 0, HMSkipItem {}, { HMStringItem { "Hi!", "", "", "" }, /* Menu Title Help - Never Visible */ HMStringItem { "The document name.\n\nThis document has not been saved to disk.", "", "", "" } /* First Item Help - Always Document */ } }; resource 'hmnu' (kNavigationMenuID, "Pop-up Navigation Menu help", purgeable) { HelpMgrVersion, hmDefaultOptions, 0, 0, HMStringItem { "To open this folder or disk window, choose this item.", /* Enabled items */ "To open this folder or disk window, choose this item.\n\nNot available because the Scriptable Finder is not installed.", /* Dimmed items */ "", /* Enabled and Checked items */ "" /* Enabled and Marked items */ }, { HMStringItem { "Hi!", "", "", "" }, /* Menu Title Help - Never Visible */ HMStringItem { "The document name.", "", "", "" } /* First Item Help - Always Document */ } }; resource 'hfdr' (kHMHelpID, "Application icon help", purgeable) { HelpMgrVersion, hmDefaultOptions, 0, 0, { HMSTRResItem { rFinderIconHelp } } }; resource 'hovr' (rHelpOverride, "Window Title Bar Help Override", purgeable) { HelpMgrVersion, hmDefaultOptions, 0, 0, HMStringItem { "Missing overide message." }, { HMTEResItem { rHelpOverrideHelp }, HMSkipItem { }, HMSkipItem { }, HMSkipItem { }, HMSkipItem { }, HMSkipItem { }, HMSkipItem { } } }; resource 'FREF' (rDocumentFREF, "Document File Reference") { '.oO~', 0, "" }; resource 'FREF' (rApplicationFREF, "Application File Reference") { 'APPL', 1, "" }; resource 'DLOG' (rSplashScreen, "Splash Screen", preload) { {77, 128, 275, 371}, altDBoxProc, visible, noGoAway, 0x0, rSplashScreen, "", centerMainScreen }; resource 'DITL' (rSplashScreen, "Splash Screen", preload) { { {0, 0, 198, 243}, Picture { disabled, rSplashScreen } } }; resource 'ALRT' (rPermErrAlert, "Already Open", purgeable) { {40, 40, 156, 390}, rPermErrAlert, beepStages, alertPositionMainScreen }; resource 'DITL' (rPermErrAlert, "Already Open") { { {86, 282, 106, 340}, Button { enabled, "OK" }, {10, 78, 74, 340}, StaticText { disabled, "The file “^0” could not be opened because it is already open for writing by " "another application." } } }; resource 'ALRT' (rCloseDirtyAlert, "Save Changes before Closing", purgeable) { {40, 40, 156, 390}, rCloseDirtyAlert, beepStages, alertPositionMainScreen }; resource 'DITL' (rCloseDirtyAlert, "Save Changes before Closing") { { {86, 282, 106, 340}, Button { enabled, "Save" }, {86, 215, 106, 273}, Button { enabled, "Cancel" }, {86, 78, 106, 158}, Button { enabled, "Don't Save" }, {10, 78, 74, 340}, StaticText { disabled, "Your document “^0” has been changed since the last time it was saved.\nSave changes " "before closing?" } } }; resource 'ALRT' (rCloseAlert, "Trash Alert", purgeable) { {116, 52, 231, 420}, rCloseAlert, beepStages, alertPositionMainScreen }; resource 'DITL' (rCloseAlert, "Trash Alert") { { {84, 297, 104, 357}, Button { enabled, "Save" }, {84, 141, 104, 284}, Button { enabled, "Remove from Trash" }, {84, 19, 104, 104}, Button { enabled, "Don’t Save" }, {10, 20, 42, 52}, Icon { disabled, rApplicationICON }, {10, 70, 74, 357}, StaticText { disabled, "The ^0 document “^1” has been moved to the trash.\nSave changes before closing?" } } }; resource 'ALRT' (rMissingFeatureAlert, "Missing Features", purgeable) { {40, 40, 190, 398}, rMissingFeatureAlert, beepStages, alertPositionMainScreen }; resource 'DITL' (rMissingFeatureAlert, "Missing Features") { { {120, 290, 140, 348}, Button { enabled, "OK" }, {10, 70, 110, 348}, StaticText { disabled, "This program requires features which are not available on your machine. " "\n\nMake sure you are using the most recent system software and have the " "Finder Scripting extension installed." }, {10, 20, 42, 52}, Icon { disabled, rApplicationICON } } }; resource 'ALRT' (rNotImplementedAlert, "Not Implemented", purgeable) { {40, 40, 150, 398}, rNotImplementedAlert, beepStages, alertPositionMainScreen }; resource 'DITL' (rNotImplementedAlert, "Not Implemented") { { {80, 290, 100, 348}, Button { enabled, "OK" }, {10, 70, 70, 348}, StaticText { disabled, "This feature has not been implemented. It is provided to demonstrate " "how a feature might be properly presented in the User Interface." }, {10, 20, 42, 52}, Icon { disabled, rApplicationICON } } }; resource 'ALRT' (rNoAccessAlert, "Access Denied", purgeable) { {40, 40, 190, 398}, rNoAccessAlert, beepStages, alertPositionMainScreen }; resource 'DITL' (rNoAccessAlert, "Access Denied") { { {120, 290, 140, 348}, Button { enabled, "Now" }, {120, 70, 140, 128}, Button { enabled, "Later" }, {10, 70, 110, 350}, StaticText { disabled, "Your document “^0” has been moved to a folder which you do not have access " "to.\n\nWould you like to save your document to another location now or later?" }, {10, 20, 42, 52}, Icon { disabled, rApplicationICON } } }; resource 'ALRT' (rLowMemoryAlert, "Low Memory", preload) { {40, 40, 190, 398}, rLowMemoryAlert, beepStages, alertPositionMainScreen }; resource 'DITL' (rLowMemoryAlert, "Low Memory", preload) { { {86, 282, 106, 340}, Button { enabled, "OK" }, {10, 78, 74, 340}, StaticText { disabled, "There is very little space left in memory. Please close some windows as soon as possible." } } }; resource 'ALRT' (rRevertAlert, "Revert Document Alert", purgeable) { {86, 60, 190, 432}, rRevertAlert, beepStages, alertPositionMainScreen }; resource 'DITL' (rRevertAlert, "Revert Document Alert") { { {74, 299, 94, 362}, Button { enabled, "Revert" }, {74, 223, 94, 286}, Button { enabled, "Cancel" }, {13, 65, 62, 311}, StaticText { disabled, "Revert to the last saved version of the document “^0”?" }, } }; resource 'DLOG' (rAbout, "Scrolling Styled Text About Box") { {72, 68, 272, 368}, dBoxProc, invisible, noGoAway, 0x0, rAbout, "", alertPositionMainScreen }; resource 'DITL' (rAbout, "Scrolling Styled Text About Box") { { {170, 230, 190, 288}, Button { enabled, "OK" }, {10, 20, 42, 52}, Icon { disabled, rApplicationICON }, {10, 70, 160, 290}, UserItem { disabled }, {187, 2, 202, 176}, Picture { disabled, rCopyrightPicture } } }; resource 'ALRT' (rErrorAlert, "Error Reporter", purgeable) { {40, 40, 170, 360}, rErrorAlert, beepStages, alertPositionMainScreen }; resource 'DITL' (rErrorAlert, "Error Reporter") { { {100, 250, 120, 308}, Button { enabled, "OK" }, {10, 70, 90, 310}, StaticText { disabled, "An error of type ^0 (^1) has occurred.\n\n^2" } } }; resource 'ALRT' (rEmptyTrashAlert, "Empty Trash Alert", purgeable) { {86, 60, 206, 382}, rEmptyTrashAlert, beepStages, alertPositionMainScreen }; resource 'DITL' (rEmptyTrashAlert, "Empty Trash Alert") { { {90, 248, 110, 312}, Button { enabled, "OK" }, {10, 72, 80, 312}, StaticText { disabled, "There is not enough room on ^0 to save your document. " "There would be enough room if you emptied the ^1 K in the trash." } } }; resource 'ALRT' (rNotEnoughSpaceAlert, "No Space Alert", purgeable) { {86, 60, 206, 382}, rNotEnoughSpaceAlert, beepStages, alertPositionMainScreen }; resource 'DITL' (rNotEnoughSpaceAlert, "No Space Alert") { { {90, 248, 110, 312}, Button { enabled, "OK" }, {10, 70, 80, 310}, StaticText { disabled, "There is not enough room on the volume to save your document. " "Please make some space or save to another volume." } } }; resource 'BNDL' (128) { '.oO~', 0, { 'FREF', { 0, rDocumentFREF, 1, rApplicationFREF }, 'ICN#', { 0, rDocumentFREF, 1, rApplicationFREF } } }; type '.oO~' { pstring; }; resource '.oO~' (0, "Owner resource") { "Copyright 1994,1995 Mark H. Linton" }; resource 'SIZE' (-1) { reserved, acceptSuspendResumeEvents, reserved, canBackground, multiFinderAware, backgroundAndForeground, dontGetFrontClicks, ignoreChildDiedEvents, is32BitCompatible, isHighLevelEventAware, localAndRemoteHLEvents, isStationeryAware, dontUseTextEditServices, reserved, reserved, reserved, 1024000, 1024000 };